﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace _03.LastDigitToWordProgramTest
{
    [TestClass]
    public class LastDigitToWordProgramTest
    {
        [TestMethod]
        public void TestMethodFour()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(1024);
            Assert.AreEqual("four", word);
        }

        [TestMethod]
        public void TestMethodSix()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(516);
            Assert.AreEqual("six", word);
        }

        [TestMethod]
        public void TestMethodOneDigit()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(1);
            Assert.AreEqual("one", word);
        }

        [TestMethod]
        public void TestMethodOneDigitZero()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(0);
            Assert.AreEqual("zero", word);
        }

        [TestMethod]
        public void TestMethodLastDigitZero()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(10240);
            Assert.AreEqual("zero", word);
        }

        [TestMethod]
        public void TestMethodBorderNumber()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(int.MaxValue);
            Assert.AreEqual("seven", word);
        }

        [TestMethod]
        public void TestMethodNegativeNumber()
        {
            string word = LastDigitToWordProgram.LastDigitToWord(-568005);
            Assert.AreEqual("five", word);
        }
    }
}
